package com.lyf.design.practice.theory.behavior.strategy.nju.moviesale_20;

/**
 * @author LYF
 * @date 2022/6/25
 */
public class VIPDiscount implements Discount{
    private Double price;
    private Integer point;

    // price可以通过 setter/constructor 也可以通过 getLastPrice参数进行传入
    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public Double getLastPrice() {
        point++;
        return price*0.5;
    }
}
